/*
 * Encoder.c
 *
 * Created: 21.06.2013 14:05:23
 *  Author: saenko
 */ 


#include <avr/io.h>
#include <avr/interrupt.h>
#include "encoder.h"

int main(void)
{
	
	encoder_init();
		
		
	DDRB = 0xFF;
	DDRC = 0xFF;
		
	sei();
		
    while(1)
    {
		if(enc_left)
		{
			PORTB++;
			enc_left = 0;
		}
		
		if(enc_right)
		{
			PORTC++;
			enc_right = 0;
		}
		
        //TODO:: Please write your application code 
    }
}